package com.kylewang.pomodoro;
import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;

import java.util.Timer;
import java.util.TimerTask;

public class Splash extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);

        Timer timer=new Timer();
        timer.schedule(new TimerTask(){
            public void run(){
                Intent i = new Intent();
                i.setClass(Splash.this, MainActivity.class);
                startActivity(i);
                Splash.this.finish();
                this.cancel();}},1500);
    }
}